new Vue({
	el:"body",
	data:{
		current:false,//判断是否登录
	},
	methods:{
		logOut:function(){
			AV.User.logOut();
			var currentUser = AV.User.current();
			if(currentUser) {
				this.current = true;
			} else{
				location.href="../loginAndReg/login.html"
			}
		}
	},
	created:function(){
		init();
		var currentUser=AV.User.current();
		if(currentUser){
			this.current=true;
		}else{
			location.href="../loginAndReg/login.html";
		}
	}
})